package spring.lottery.dao.mapper;

import org.apache.ibatis.annotations.Mapper;
import spring.lottery.controller.param.ActivityPrize;
import spring.lottery.controller.param.DrawPrizesData;
import spring.lottery.dao.dataObject.ActivityPrizeDO;
import spring.lottery.dao.dataObject.ActivityUserDO;
import spring.lottery.server.dto.ActivityPrizeDto;
import spring.lottery.server.enums.ActivityStatusEnum;

import java.util.List;

@Mapper
public interface ActivityPrizeMapper {

    void insert(ActivityPrizeDto ad);

    List<ActivityPrize> selectPrize(Long activityId);

    List<ActivityPrizeDO> selectById(Long activityId);

    ActivityPrizeDO selectByAPId(Long activityId, Long prizeId);

    void updateStatus(DrawPrizesData param, ActivityStatusEnum status);

}
